package pe.gob.inei.fx.lib.component.events
{
	import flash.events.EventDispatcher;

	public class DispatcherEvent extends EventDispatcher {
		
		[ArrayElementType("DispatcherEvent")]
		private static var instances:Array = new Array();
		
		public function DispatcherEvent(singleton:SingletonForce) {}
		
		public static function instance(claseRef:Class):DispatcherEvent {
			if(instances[claseRef] == null)
				instances[claseRef] = new DispatcherEvent(new SingletonForce());
			return instances[claseRef];
		}
		
		public static function cerrar(claseRef:Class):void {
			instances[claseRef] = null;
		}
	}
}

class SingletonForce{}